<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
    //    let r = prompt('输入圆的半径：')
    //    document.write(3.14*r*r)
    //    let r = prompt('输入圆的半径：')
    //    let rs = 3.14*r*r
    //    document.write(rs)
    // let name = prompt('输入名字：')
    // let age = prompt('输入年龄：')
    // //document.write('大家好，我叫'+name + ',今年'+age +'岁了')
    //document.write(`大家好，我叫${name},今年${age}岁`)
    let a = +prompt('输入一个数：')
    let b = +prompt('输入一个数')
    document.write( a+b)
    let price = prompt('输入商品价格：')
    let num = prompt('输入商品数量：')
    let address = prompt('输入收货地址：')
    let total = num*price
    document.write(price,num,address,total)
    </script>
    <h2>订单确认</h2>
</body>
</html>